package com.pattern.facade;

/**
 * @author 冯志立
 * @create 2019-11-01 16:29
 */
public class Popcorn {
    //使用单例模式，饿汉式
    private static Popcorn instance = new Popcorn();

    public static Popcorn getInstance(){
        return instance;
    }

    public void on(){
        System.out.println("Popcorn打开了");
    }
    public void close(){
        System.out.println("Popcorn关闭了");
    }
    public void pop(){
        System.out.println("Popcorn正在爆");
    }

}
